home *** CD-ROM | disk | FTP | other *** search
/ FM Towns: Free Software Collection 6 / FM Towns Free Software Collection 6.iso / t_os / igo / src / mdcommnt.c < prev    next >
C/C++ Source or Header  |  1993-07-08  |  2KB  |  71 lines

  1. #include <stdio.h>
  2. #include <stdlib.h>
  3. #include <string.h>
  4. #include <winb.h>
  5. #include <te.h>
  6. #include <fntb.h>
  7. #include <gui.h>
  8.  
  9. extern int    backId ;
  10. extern int    deskTopId ;
  11. extern int    buttonId ;
  12. extern int  textcommentId[8] ;
  13. extern int  title_dispdialogId ;
  14.  
  15. int    commentdialogId = -1 ;
  16. int    commentId = -1 ;
  17. int    commentbtnId[2] = -1 ;
  18. int    comment_messageId[3] = -1 ;
  19.  
  20. /*    initDataMICOMMNT:commentbtnId[0]:MJ_DBUTTONL40の呼び出し関数    */
  21. int    igo_commentset(kobj, messId, argc, pev, trigger)
  22. int        kobj ;
  23. int        messId ;
  24. int        argc ;
  25. EVENT    *pev ;
  26. int        trigger ;
  27. {
  28.     char tptr[256];
  29.  
  30.     MMI_SendMessage( commentId, MM_GETTEXT, 3, tptr, 256, FALSE);
  31.     tptr[255] = '\0';
  32.     kifu_commentset( tptr);
  33.     MMI_SendMessage( textcommentId[7], MM_SETTEXT, 3, tptr, 256, FALSE);
  34.     
  35.     MMI_SendMessage( title_dispdialogId , MM_SHOW , 0 ) ; 
  36.  
  37.     /*    commentdialogIdで示されるオブジェクトを消す        */
  38.     MMI_SendMessage( commentdialogId , MM_ERASE , 0 ) ;
  39.  
  40.     /*    オブジェクトをダイアログから取り外す    */
  41.     MMI_SendMessage( commentdialogId , MM_DETACH , 0 ) ;
  42.  
  43.     /*    オブジェクトをダイアログに取り付ける    */
  44.     MMI_SendMessage( deskTopId , MM_ATTACH , 1 , backId ) ;
  45.     MMI_SendMessage( buttonId , MM_ATTACH , 1 , backId ) ;
  46.  
  47.     return NOERR ;
  48. }
  49.  
  50. /*    initDataMICOMMNT:commentbtnId[1]:MJ_DBUTTONL40の呼び出し関数    */
  51. int    igo_commentcancel(kobj, messId, argc, pev, trigger)
  52. int        kobj ;
  53. int        messId ;
  54. int        argc ;
  55. EVENT    *pev ;
  56. int        trigger ;
  57. {
  58.     /*    commentdialogIdで示されるオブジェクトを消す        */
  59.     MMI_SendMessage( commentdialogId , MM_ERASE , 0 ) ;
  60.  
  61.     /*    オブジェクトをダイアログから取り外す    */
  62.     MMI_SendMessage( commentdialogId , MM_DETACH , 0 ) ;
  63.  
  64.     /*    オブジェクトをダイアログに取り付ける    */
  65.     MMI_SendMessage( deskTopId , MM_ATTACH , 1 , backId ) ;
  66.     MMI_SendMessage( buttonId , MM_ATTACH , 1 , backId ) ;
  67.  
  68.     return NOERR ;
  69. }
  70.  
  71.